//
//  YDNetClient.h
//  YiDao
//
//  Created by Demon on 2017/10/22.
//  Copyright © 2017年 Demon. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef void(^SuccessBlock)(id object);
typedef void(^FailBlock)(NSError *error);

@interface YDNetClient : AFHTTPSessionManager

+ (instancetype)sharedInstance;

- (void)getMethod:(NSString *)url param:(NSDictionary *)paramDic success:(SuccessBlock)successBlock fail:(FailBlock)failBlock;

- (void)postMethod:(NSString *)url param:(NSDictionary *)paramDic success:(SuccessBlock)successBlock fail:(FailBlock)failBlock;

@end
